package com.zzyl.controller;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.service.NursingprojectService;
import com.zzyl.vo.NursingProjectVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nursing_project")
@Api(tags = "护理项目功能模块")
public class NursingProjectController extends BaseController {

    @Autowired
    private NursingprojectService nursingprojectService;

    @GetMapping
    @ApiOperation("分页查询护理项目")
    public ResponseResult<PageResponse<NursingProjectVo>> queryPage(String name,Integer pageNum,Integer pageSize,Integer status){
        PageResponse<NursingProjectVo> response = nursingprojectService.queryPage(name,pageNum,pageSize,status);
        return success(response);
    }
}
